//需要实现 rcli -i  -o

use clap::Parser;
use cli_demo::{Subcommand,Opts,csv_to_json};


fn main() -> anyhow::Result<()>{
    let opts = Opts::parse();
    println!("opts is {:?}",opts);
    match opts.cmd {
        Subcommand::Csv(opt) => csv_to_json(&opt.input,&opt.output)?,
    }
    Ok(())
}
